﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Windows.Forms;

namespace LanSunERP
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                ServiceHost host = new ServiceHost(typeof(DataBaseLayerService), new Uri("http://localhost:8001/"));
                host.Open();
                ShowServiceMessage m_ShowServiceMessage = new ShowServiceMessage();
                m_ShowServiceMessage.Visible = false;
                Application.Run(m_ShowServiceMessage);
                host.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + ex.Source + ex.StackTrace);
            }
        }
    }
}
